import request from '@/utils/request.js'

const api_Host = '/eduservice/course'

export default {
    getCoursePublishInfoById(id) {
        return request({
            url: `${api_Host}/getCoursePublishById/${id}`,
            method: 'get'
        })
    },

    publishCourse(id) {
        return request({
            url: `${api_Host}/updateToPublish/${id}`,
            method: 'get'
        })
    },
}